import React, { Suspense } from 'react';
import { BrowserRouter, useRoutes } from 'react-router-dom'
import { routers_list } from './routes';

const Index: React.FC = () => {
  const RouterView = () => useRoutes(routers_list)
  return (
    <BrowserRouter>
      <Suspense>
        <RouterView></RouterView>
      </Suspense>
    </BrowserRouter>
  )
}

export default Index